<?php

namespace app\home\widget;

use think\Controller;

/**
 * 公共模板类
 * Class Common
 * @package app\home\widget
 */
class Common extends Controller
{
    /**
     * 头部公共文件
     * @return mixed
     */
    public function header()
    {
        return $this->fetch('common/header', ['title' => config('app_name')]); //渲染模版
    }

    /**
     * 底部公共文件
     * @return mixed
     */
    public function foot()
    {
        return $this->fetch('common/foot', ['app_name' => config('app_name')]);
    }
}